#ifndef BACKGROUND_H
#define BACKGROUND_H

#include <QObject>
#include<QGraphicsPixmapItem>
#include<QPropertyAnimation>


class background : public QObject,public QGraphicsPixmapItem
{
    Q_OBJECT
    Q_PROPERTY(QPointF pos READ getPos WRITE setPos1)
public:
    explicit background(QObject *parent = nullptr);
    QPropertyAnimation* move;
    QPointF getPos() const
    {
        return m_pos;
    }
    void setPos1(const QPointF &pos);

private:
    QPointF m_pos;

signals:
};

#endif // BACKGROUND_H
